from rest_framework import serializers

from .models import Users

class UserSerializer(serializers.ModelSerializer):
    class Meta:
        model = Users
        fields = ('id', 'name', 'age', 'sex', 'College','img')  # 序列化返回的字段
